package com.hongsheng.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.hongsheng.pojo.Driver;
import com.hongsheng.pojo.Goods;

import java.util.List;

/**
 * ClassName:DriverService
 * Description:
 *
 * @Author: 曾晋冠
 * @Version: 2022.3.2
 * @Create: 2023/8/10 - 16:41
 */

public interface DriverService extends IService<Driver> {

    /**
     * 查询全部
     * @return
     */
    List<Driver> findAllDriver();

    /**
     * 添加
     * @param driver
     * @return
     */
    Boolean addDriver(Driver driver);

    /**
     * 修改
     * @param driver
     * @return
     */
    Boolean updateDriver(Driver driver);

    Boolean setStuDr(Driver driver);

    /**
     * 删除
     * @param id
     * @return
     */
    Boolean deleteDriver(Integer id);
    //查询空闲的司机
    List<Driver> findFreeDriver();
    Driver findAllById(Integer id);


    PageInfo<Driver> getPageDriver(Integer currentPage, Integer pageSize, Driver driver);
    Boolean findStatus(Integer id);

    Boolean findPhone(String driverPhone);
}
